package main

import (
	"BaseApi/common/global"
	_ "BaseApi/common/initter"
	_ "BaseApi/router"
	"fmt"
	"go.uber.org/zap"
)

func main() {
	//替换为全局变量
	zap.S().Infow("Api端启动", zap.String("Host:::", "0.0.0.0"), zap.Int("端口:::", global.Port))
	err := global.Router.Run(fmt.Sprintf(":%d", global.Port))
	if err != nil {
		zap.S().Panic(err.Error())
	}
}
